<template>
  <div class="new-good-container">
    <div class="new-title">周一周四·新品首发</div>
    <div class="new-good">
      <div class="new-good-item" v-for="item in newGoodsList" :key="item.id">
        <img :src="item.list_pic_url" alt="" />
        <div>{{ item.name }}</div>
        <p>{{ item.retail_price | moneyFilters }}</p>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "",
  props: ["newGoodsList"],
};
</script>
 
<style lang="less" scoped>
.new-good-container {
  background: #fff;
  padding-bottom: 0.15rem;
  .new-title {
    height: 0.5rem;
    line-height: 0.5rem;
    text-align: center;
  }
  .new-good {
    display: flex;
    flex-wrap: wrap;
    .new-good-item {
      width: 49%;
      text-align: center;
      img {
        width: 100%;
        display: block;
      }
      div {
        height: 0.3rem;
        line-height: 0.3rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      p {
        color: red;
        padding-top: 0.05rem;
      }
    }
  }
}
</style>